
(if (require 'ruby-mode "ruby-mode" t)
    (progn
      (require 'ruby-mode)
      (require 'inf-ruby)
      (require 'ruby-electric)
      
      
      (add-hook 'ruby-mode-hook
          '(lambda ()
	     (inf-ruby-keys)
	     (ruby-electric-mode)
	     ))
      

      (define-key ruby-mode-map "\C-m" 'newline-and-indent))
  (warn "package <ruby-elisp> is missing use apt-get ruby-elisp to install"))




